package cn.mesmile.design.observer;

/**
 * @author zb
 * @version 1.0
 * @date 2020/11/21 14:34
 * @description
 */
public class Main {

    public static void main(String[] args) {
        BossConcreteSubject bossConcreteSubject = new BossConcreteSubject();

        LWConcreteObserver lwConcreteObserver = new LWConcreteObserver();
        AnnaConcreteObserver annaConcreteObserver = new AnnaConcreteObserver();

        bossConcreteSubject.addObserver(lwConcreteObserver);
        bossConcreteSubject.addObserver(annaConcreteObserver);

        bossConcreteSubject.doSomething();

    }
}
